// document.querySelector(".xianshishouqi").onclick=xianshishouqi
// function xianshishouqi(){
//     var content=document.querySelector(".xianshishouqi").innerText;
//     if(content=="显示"){
//         document.querySelector(".yincang").style.display="block"
//         document.querySelector(".xianshishouqi").innerText="收起";
//     }
//     else if(comment=="收起"){
//         document.querySelector(".yincang").style.display="none"
//         document.querySelector(".xianshishouqi").innerText="显示";
//     }
// }

// $(".licontent").click(function (){
//     var jobId=$(".result_jobId").val();
//     $.ajax({
//         type:"get",
//         url:"${pageContext.request.contextPath}/job/getById"+jobId,
//         dataType:"json",
//         success:function (data){
//
//         }
//     })
// })











//选择的城市
document.querySelector(".ull").onclick=function (event){
    var ele=event.target;
    // console.log("ele "+ele);
    var nodeName=ele.nodeName;
    // console.log("nodeName "+nodeName);
    var ullarr=document.querySelector(".ull").children;
    for(var i=0;i<ullarr.length;i++){
        ullarr[i].id="";
        // console.log(ullarr[i])
    }
    ele.id="bg1";
    console.log("选中的值"+ele.innerText)

}

//分页




//选择区域1
document.querySelector(".arealist1").onclick=function (event){
    var ele=event.target;
    // console.log("ele "+ele);
    var nodeName=ele.nodeName;
    // console.log("nodeName "+nodeName);
    var arealist1arr=document.querySelector(".arealist1").children;
    for(var i=0;i<arealist1arr.length;i++){
        arealist1arr[i].id="";
        // console.log(ullarr[i])
    }
    ele.id="bg2";
    console.log("选中的值"+ele.innerText)

}
//选择区域2
document.querySelector(".arealist2").onclick=function (event){
    var ele=event.target;
    // console.log("ele "+ele);
    var nodeName=ele.nodeName;
    // console.log("nodeName "+nodeName);
    var arealist2arr=document.querySelector(".arealist2").children;
    for(var i=0;i<arealist2arr.length;i++){
        arealist2arr[i].id="";
        // console.log(ullarr[i])
    }
    ele.id="bg3";
    console.log("选中的值"+ele.innerText)

}

//获取下拉框的内容
document.querySelector(".companyde").onchange=xiala
function xiala(){
    var optioncontent='';

       var selection=document.querySelector(".companyde")

        var index = selection.selectedIndex;
        optioncontent = selection.options[index].text;
        console.log(optioncontent)

    return optioncontent;
}

// document.querySelector(".jobde").onchange=jobde
// function jobde(){
//
//     var selection=document.querySelector(".jobde")
//     var index=selection.selectedIndex;
//     optioncontent=selection.options[index].text;
//     console.log(optioncontent)
//
// }
document.querySelector(".degreede").onchange=degrees
function degrees(){

    var selection=document.querySelector(".degreede")

        var index = selection.selectedIndex;
        optioncontent = selection.options[index].text;
        console.log(optioncontent)

    return optioncontent;
}

document.querySelector(".salaryde").onchange=salarys
function salarys() {
    var selection = document.querySelector(".salaryde")

    var index = selection.selectedIndex;
     optioncontent = selection.options[index].text;
    console.log(optioncontent)

    return optioncontent;

}
document.querySelector(".jingyande").onchange=jingyans
function jingyans(){
    var selection=document.querySelector(".jingyande")
    var index=selection.selectedIndex;
    optioncontent=selection.options[index].text;
    console.log(optioncontent)
    return optioncontent;
}
document.querySelector(".companysizede").onchange=companysizes
function companysizes(){

    var selection=document.querySelector(".companysizede")

        var index=selection.selectedIndex;
    optioncontent=selection.options[index].text;
    console.log(optioncontent)
    return optioncontent;


}



//清空筛选
var clearselect=document.querySelector(".clearselect");
clearselect.onclick=clear;
function clear() {
    var arr = document.querySelector(".moreselection").children
    for (var i = 0; i < arr.length; i++) {//select
        var name = arr[i].className;
        var selection = document.querySelector(".name")

        optioncontent = selection.options[0].text;
        document.getElementsByClassName(".name").value = "optioncontent";
    }
}



// //确定
// var queding=document.querySelector(".queding");
// queding.onclick=yes;
// function yes(){
//     var arr = document.querySelector(".moreselection").children
//     for (var i = 0; i < arr.length; i++) {//select
//         var name = arr[i].className;
//         var selection = document.querySelector(".name")
//         var index=selection.selectedIndex;
//         optioncontent=selection.options[index].text;
//         document.getElementsByClassName(".name").value = "optioncontent";
//     }
// }

